﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation = "false" CodeFile="List1.aspx.cs" Inherits="Manage_Emp1_List1" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
   <title>上课学员名单管理</title>
  <link rel="stylesheet" type="text/css" href="../skin/css/base.css" />
  <script language="javascript" type="text/javascript">
      function selectall() {
          if (document.getElementById("chkSelect").checked == true) {
              v = true;
          }
          else {
              v = false;
          }
          var f = document.forms[0];
          for (i = 0; i < f.elements.length; i++)
              f.elements[i].checked = v;
      }      
</script>
<style type="text/css">
    .cinputedit
    {
    	 border:solid 1px green;
    }
    .cinput
    {
    	border:none;
    }
</style>
</head>
<body leftmargin="8" topmargin="8" background='../skin/images/allbg.gif'>
    <form id="form1" runat="server">
      <asp:ScriptManager ID="ScriptManager1" runat="server"  EnableScriptGlobalization="True" EnableScriptLocalization="True">
        </asp:ScriptManager>
   <!--  快速转换位置按钮  -->
    <table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA" align="center">
    <tr>
     <td height="26" background="../skin/images/newlinebg3.gif">
      <table width="98%" border="0" cellspacing="0" cellpadding="0">
      <tr>
       <td align="center"><span style="font-size:14px; font-weight:bold">上课学员名单</span></td>
       <td  align="right"  style="width:60px">
        <asp:Button ID="addClassEmp" runat="server" class="coolbg_add" Text="添加上课学员名单" 
              onclick="addClassEmp_Click" />
     </td>
     </tr>
    </table>
    </td>
    </tr>
    </table>
     <asp:UpdatePanel ID="up1" runat="server" >
    <ContentTemplate>
    <!--  内容列表   -->
     <div  style=" text-align:center">
            <input type='hidden' name='dopost' value='' />
            <table width='98%'  border='0' cellpadding='1' cellspacing='1' bgcolor='#CBD8AC' align="center" style="margin-top:8px">
              <tr bgcolor='#EEF4EA'>
                <td background='skin/images/wbg.gif' align='center'>
                  <table border='0' cellpadding='0' cellspacing='0' align='center'>
                    <tr>
                    <td width='70'>
                      关键字：
                    </td>
                    <td width='160'>
                        <asp:TextBox ID="txtkeyword" runat="server" Width="150px"></asp:TextBox>
                    </td>
                     
                    <td width="100px">
                <asp:ImageButton ID="ibtnsearch" runat="server" Width="45px" Height="20px" 
                            BorderStyle="None"  CssClass="np"  ImageUrl="../skin/images/frame/search.gif" 
                            onclick="ibtnsearch_Click"  />
                     
                    </td>
                   </tr>
                  </table>
                </td>
              </tr>
            </table>
            </div>
    <div id="form2">
  
    <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
   
    <tr bgcolor="#E7E7E7">
	    <td height="24"  background="../skin/images/tbg.gif">&nbsp;上课课程列表
        </td>               
    </tr>
  
   <tr style="background-color:#ffffff">
    <td >
          <asp:GridView ID="GridView1" runat="server" Width="100%" CellPadding="4" BorderColor="#D1DDAA"  
                            AutoGenerateColumns="False"  OnRowDeleting="GridView1_RowDeleting"
                            DataKeyNames="ClassEmpId"  DataMember="Num" SelectedIndex="0" 
              OnRowDataBound="GridView1_RowDataBound" GridLines="Both" 
              AllowPaging="False" PageIndex="1" AllowSorting="true" 
              onsorting="GridView1_Sorting" onrowcommand="GridView1_RowCommand" 
           
              >
                            <Columns>
                                  <asp:TemplateField HeaderText="编号" SortExpression="Num">
                                    <ItemTemplate>
                                        <asp:Label ID="lblNum" runat="server" Text='<%# Eval("Num") %>'></asp:Label>
                                     </ItemTemplate> 
                                </asp:TemplateField>
                               
                                <asp:TemplateField HeaderText="标题" SortExpression="Title">
                                    <ItemTemplate>
                                        <asp:Label ID="lblTitle" runat="server" Text='<%# Eval("Title") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="课程类型" SortExpression="ClassTypeName">
                                    <ItemTemplate>
                                        <asp:Label ID="lblClassTypeName" runat="server" Text='<%# Eval("ClassTypeName") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="课程编号" SortExpression="ClassCode">
                                    <ItemTemplate>
                                        <asp:Label ID="lblClassCode" runat="server" Text='<%# Eval("ClassCode") %>'></asp:Label>
                                      
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="课程名称" SortExpression="ClassName">
                                    <ItemTemplate>
                                        <asp:Label ID="lblClassName" runat="server" Text='<%# Eval("ClassName") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                  <asp:TemplateField HeaderText="操作">
                                    <ItemTemplate>
                                       <asp:LinkButton runat="server" ID="lbtEdit" CommandArgument='<%#Eval("ClassEmpId")%>'
                                    CommandName="Edit" Text="查看" Visible='<%#edit==1%>' ></asp:LinkButton>&nbsp;&nbsp;
                                    <asp:LinkButton runat="server" ID="lbtDelete" CommandArgument='<%#Eval("ClassEmpId")%>'
                                    CommandName="Del" Text="删除" Visible='<%#(delete==1)%>' OnClientClick="return confirm('您确定要删除该记录吗？')"></asp:LinkButton>
                                   </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                            </Columns>
                            <PagerSettings FirstPageText="" LastPageText="" NextPageText="" PreviousPageText="" />
                            <RowStyle Height="20px" BackColor="#FFFFFF"  ForeColor="#000000" />
                            <FooterStyle BackColor="#FFFFFF" Font-Bold="True" ForeColor="White" />
                            <EditRowStyle BackColor="#FCFDEE" />
                            <SelectedRowStyle BackColor="#FFFFFF"  ForeColor="#000000" />
                            <PagerStyle BackColor="#FCFDEE" ForeColor="White" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#FCFDEE"  ForeColor="000000" />
                            <AlternatingRowStyle BackColor="#FCFDEE" ForeColor="#000000" />
                            
                        </asp:GridView>
   </td>
   </tr>
   
     <tr align="right" bgcolor="#EEF4EA">
                <td height="36" align="center" >
                    <webdiyer:AspNetPager ID="pager1" runat="server" OnPageChanged="pager1_PageChanged"
                        PageSize="20">
                    </webdiyer:AspNetPager>
                </td>
            </tr>
    </table>
     
  </div>
  </ContentTemplate>
     
    </asp:UpdatePanel>
    </form>
</body>
</html>

